package com.xike.microsysserver.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.util.Date;
import java.util.List;

/**
 * Auther: wuson  <br/>
 * Date: 2021/4/15:21:04  <br/>
 * Description:
 */
@Data
@Builder
public class MemberCouponEntity {
    //id
    private int id;
    //优惠券id
    private int couponId;
    //持有人账号
    private String memberUsername;
    //创建时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //1正常2已使用3已过期
    private int status;
    //优惠券实体
    private List<CouponEntity> couponEntitys;
    @Tolerate
    public MemberCouponEntity(){}

}
